home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
TPWENG
/
RECLCKED.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
570b
|
28 lines
program RecLocked;
uses PXEngine, WinCrt, winTypes;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
Locked: Bool;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
(* See if record is locked *)
PxErr := PXNetRecLocked(TblHandle, Locked);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr))
else Writeln('Record Locked: ', Locked);
PX(PXTblClose(TblHandle));
PX(PXExit);
end.